﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Senac.NetMob.Models;

namespace Lucas.Wendell.PI.Model.Context
{
    public class NetImobiliariaContext : DbContext
    {
        public NetImobiliariaContext()
        {
            base.Configuration.LazyLoadingEnabled = true;
            base.Configuration.AutoDetectChangesEnabled = false;

            Database.SetInitializer(new DropCreateDatabaseIfModelChanges<NetImobiliariaContext>());
        }

        public DbSet<Usuario> Usuario { get; set; }
        public DbSet<Perfil> Perfil { get; set; }
        public DbSet<Comodo> Comodo { get; set; }
        public DbSet<ComodoCaracteristica> ComodoCaracteristica { get; set; }
        public DbSet<Imovel> Imovel { get; set; }
        public DbSet<ImovelEspecificacao> ImovelEspecificacao { get; set; }
    }
}
